import datetime
 # 获取包括当前日期的3天数据


def createDay(day):
        now = datetime.datetime.now()
        date = datetime.timedelta(days=day)
        now3 = now-date
        dateList = [now.strftime('%Y-%m-%d'), now3.strftime('%Y-%m-%d')]
        return dateList  
        
def create3Day():
   return createDay(3)
# 获取所在txt中的每一行数据
def getCodeByTxtFile(path):
    list=[]
    with open(path) as f:
        for line in f.readlines():
            list.append(line.rstrip())
    return list
